home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / New System Software Extensions / Macintosh Easy Open 1.1.1 / Documentation / Developer / PowerPC / LowerToUpperCaseScrap.r < prev    next >
Encoding:
Text File  |  1994-12-12  |  2.5 KB  |  105 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        LowerToUpperCaseScrap.r 
  3.  
  4.     Contains:    Resources for LowerToUpperCase scrap translator
  5.     
  6.     Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  7. */
  8.  
  9. #include "Types.r"
  10. #include "MixedMode.r"
  11. #include "TranslationExtensions.h"
  12.  
  13. //___________________________________________________________________________________________________________
  14. //
  15. // Happy constants
  16. //
  17. #define kSignature                 'M&Ms'
  18. #define kComponentFileType        'thng'
  19. #define componentLocalID        0
  20. #define componentResID            130
  21. #define genericExtensionIcon    -16415
  22.  
  23. //___________________________________________________________________________________________________________
  24. //
  25. // The 'xlat' resource is a fat safe resource containing both 68K and PowerPC code.
  26. //
  27. #define uppComponentRoutineProcInfo    0x03F0
  28.  
  29. type 'xlat' as 'sdes';
  30.  
  31. resource 'xlat' (128) {
  32.     uppComponentRoutineProcInfo,                                    // 68K ProcInfo
  33.     uppComponentRoutineProcInfo,                                    // PowerPC ProcInfo
  34.     $$Resource(":Objects:LowerToUpperCaseScrap.68K", 'xlat', 128),    // Specify name, type, and ID of resource
  35.                                                                     //   containing 68k code
  36.     $$Resource(":Objects:LowerToUpperCaseScrap.pef", 'xlat', 128)    // Specify name, type, and ID of resource
  37.                                                                     //   containing a pef container
  38. };
  39.  
  40. //___________________________________________________________________________________________________________
  41. //
  42. // Tell the Component Manager about this component
  43. //
  44. resource 'thng' (128, locked) {
  45.     'xlat',
  46.     0,
  47.     kSignature,
  48.     kSupportsScrapTranslation,    
  49.     0,
  50.     'xlat',128,
  51.     'STR ',128,
  52.     'STR ',129,
  53.     'ICON',128
  54. };
  55.  
  56. resource 'STR ' (128, purgeable) {
  57.     "LowerToUpperCaseScrap"
  58. };
  59.  
  60. resource 'STR ' (129, purgeable) {
  61.     "Lower To Upper Case Scrap Translators"
  62. };
  63.  
  64. resource 'ICON' (128, purgeable) {
  65.     $"7FE0 07FE 8040 0201 8080 0101 807F FE01"
  66.     $"8000 0001 8000 0001 8000 3FF9 8000 1009"
  67.     $"8000 0809 8002 1009 8005 A009 8008 4409"
  68.     $"8010 2209 8020 1109 8044 0829 8882 0459"
  69.     $"8F19 9989 8844 2201 8820 4401 8811 8801"
  70.     $"8802 5001 8804 2001 8808 0001 8804 0001"
  71.     $"8FFE 0001 8000 0001 8000 0001 8000 0001"
  72.     $"7FF0 0FFE 0020 0400 0040 0200 003F FC",
  73. };
  74.  
  75.  
  76. //___________________________________________________________________________________________________________
  77. //
  78. // Finder information
  79. //
  80. resource 'BNDL' (128) {
  81.     kSignature,
  82.     0,
  83.     {
  84.         'FREF',
  85.         {
  86.             componentLocalID, componentResID
  87.         },
  88.         'ICN#',
  89.         {
  90.             componentLocalID, genericExtensionIcon
  91.         }
  92.     }
  93. };
  94.  
  95.  
  96. data kSignature (0) {
  97.     $"00"                 
  98. };
  99.  
  100. resource 'FREF' (componentResID, purgeable) {
  101.     kComponentFileType,
  102.     componentLocalID,
  103.     ""
  104. };
  105.